package com.atldy.commerce.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @version 1.0
 * @Author: lidongyang
 * @CreateTime: 2021-08-19 7:32
 * @Description： 异步任务状态枚举
 */
@Getter
@AllArgsConstructor
public enum AsyncTaskStatus {

    STARTED(0, "已经启动"),
    RUNNING(1, "正在运行"),
    SUCCESS(2, "执行成功"),
    FAILED(3, "执行失败"),
    ;

    /**
     * 任务状态码
     */
    private int status;

    /**
     * 状态
     */
    private String description;

}